﻿using Autofac;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.DAL.Dependency
{
    public class DependencyRegister : IOCServices.IDependencyRegistrater
    {
        public void Register(ContainerBuilder builder, BaiTu.Framework.Core.TypeFinder.ITypeFinder typeFinder)
        {        
            builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IDAL.IRepository<>)).InstancePerLifetimeScope();
        }

        public int Order
        {
            get { return 200; }
        }
    }
}
